<template>
<div>
        <h3> TS类型输出</h3>
      <div class="sss">{{num}} </div>
      <div class="sss">{{num1}} </div>
      <div class="sss">{{count}} </div>
      <div class="sss">{{name}} </div>
      <el-button @click="changeStringBtn" plain type="success">
         点击切换类型
      </el-button>
</div>
</template>
<script lang='ts'>
import { ref } from 'vue' 
import type { Ref } from 'vue'
import {count,name} from './tsSet/typeView' 
export default {
    setup() {
        let num =ref<number>(100) 
        let num1:Ref<number> = ref(1232)
        let changeStringBtn = ()=>{
            console.log('点击')
            num.value = 1
        }
        return {
            num,
            num1,
            count,
            name,
            changeStringBtn
        }
    },  
}
</script>
<style>
    .sss{
        /* background: red; */
    }
</style>